import Vue from 'vue'
import {
  NavBar,
  Icon,
  Form,
  Field,
  Button,
  Tabbar,
  TabbarItem,
  Image as VanImage,
  Grid,
  GridItem,
  Cell,
  CellGroup,
  SwipeCell,
  Toast,
  Dialog,
  Search,
  List,
  Card,
  Uploader,
  Tab,
  Tabs,
  IndexBar,
  IndexAnchor,
  Popup,
  DropdownMenu,
  DropdownItem,
  Circle,
  GoodsAction,
  GoodsActionIcon,
  Checkbox,
  CheckboxGroup,
  RadioGroup,
  Radio
  , Col, Row
} from 'vant'

Vue.use(Col)
Vue.use(Row)

Vue.use(Radio)
Vue.use(RadioGroup)

Vue.use(GoodsAction)

Vue.use(GoodsActionIcon)

Vue.use(Circle)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)

Vue.use(Popup)

Vue.use(IndexBar)
Vue.use(IndexAnchor)

Vue.use(Tab)
Vue.use(Tabs)

Vue.use(Uploader)

Vue.use(Card)

Vue.use(List)

// 全局注册
Vue.use(Dialog)

Vue.use(Search)
// 局部注册
export default {
  components: {
    [Dialog.Component.name]: Dialog.Component
  }
}
Vue.use(Toast)
Vue.use(SwipeCell)
Vue.use(Cell)
Vue.use(CellGroup)

Vue.use(Grid)
Vue.use(GridItem)
Vue.use(VanImage)

Vue.use(Tabbar)
Vue.use(TabbarItem)

Vue.use(Button)

Vue.use(Form)
Vue.use(Field)

Vue.use(NavBar)
Vue.use(Icon)

Vue.use(Checkbox)
Vue.use(CheckboxGroup)
